package com.pds.web.testOrganizationInfo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pds.web.testOrganizationInfo.domain.PdsTestOrganizationPerson;
import com.pds.web.testOrganizationInfo.excel.OrganizationPersonExcel;
import com.pds.web.testOrganizationInfo.vo.PdsTestOrganizationPersonVO;

import java.util.List;
import java.util.Map;

public interface IPdsTestOrganizationPersonService extends IService<PdsTestOrganizationPerson> {

    /**
     * 新增
     *
     * @param pdsTestOrganizationPerson
     * @return
     */
    String addPerson(PdsTestOrganizationPerson pdsTestOrganizationPerson) throws Exception;

    /**
     * 删除 -- 根据id
     *
     * @param id
     */
    Boolean deletePerson(Long id) throws Exception;

    /**
     * 更新
     *
     * @param pdsTestOrganizationPerson
     */
    Boolean updatePerson(PdsTestOrganizationPerson pdsTestOrganizationPerson) throws Exception;

    /**
     * 查询 -- 分页/条件：userId，status
     *
     * @param pdsTestOrganizationPerson
     * @return
     */
    List<PdsTestOrganizationPerson> selectPersonList(PdsTestOrganizationPerson pdsTestOrganizationPerson);

    Integer importOrganizationPerson(List<OrganizationPersonExcel> list, Long organizationId);

    List<PdsTestOrganizationPersonVO> getOrganizationPersonList(Map map) throws Exception;

    PdsTestOrganizationPersonVO getPersonInfo(Long id);
}
